package com.thd.springboot.framework.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thd.springboot.framework.db.entity.BasicIdEntity;
import lombok.Data;

import java.util.Date;

@Data
public class  CgExampleEntityParent extends BasicIdEntity {
    // 主键 - PK
//    @TableId("id")
//    private String id;

    // 姓名
    @TableField("user_name")
    private String userName;
    // 年龄
    @TableField("user_age")
    private Integer userAge;
    // 生日
    @TableField("user_birthday")
    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date userBirthday;
}
